Learn R Programming

OpenRepGrid (version 0.1.17)

[,repgrid-method: Extract parts of the repgrid object.

Description

Methods for "[", i.e., subsetting of repgrid objects.

Usage

# S4 method for repgrid
[(x, i, j, ..., drop = TRUE)

Arguments

x

A repgrid object.

i

Row index (numeric)

j

Column index. Either numeric or character (elements names).

...

Not evaluated.

drop

Not used.

Examples

Run this code
x <- boeker
x[1:4, ]
x[, 1:3]
x[1:4, 1:3]
x[1:4, c("self", "ideal self", "mother")]

Run the code above in your browser using DataLab